package com.zmn.oms.zmn.business.impl.discount;

import com.zmn.oms.business.interfaces.discount.OrderDiscountBService;
import com.zmn.oms.model.entity.discount.OrderDiscount;
import com.zmn.oms.services.interfaces.discount.OrderDiscountService;
import com.zmn.oms.zmn.business.interfaces.discount.ZsOrderDiscountBService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * 类描述：啄木鸟-普通工单-实现类
 *
 * @author heciqi
 * @date 2018/12/10 21:05
 */
public abstract class ZsOrderDiscountBServiceImpl implements ZsOrderDiscountBService {


	@Autowired
	protected OrderDiscountBService orderDiscountBService;

	@Autowired
	protected OrderDiscountService orderDiscountService;

	/**
	 * 根据订单获取优惠列表
	 *
	 * @param orderId
	 * @return
	 */
	@Override
	public List<OrderDiscount> listByOrderId(Long orderId) {
		return orderDiscountService.listByOrderId(orderId);
	}

}
